/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.pedidos.servidor.testes;

import br.com.pedidos.servidor.dao.MesaDAO;
import br.com.pedidos.servidor.entity.Mesa;

/**
 *
 * @author Édylle
 */
public class CadastraMesa {

    public static void main(String args[]) {

        MesaDAO dao = new MesaDAO();

        for (int i = 1; i <= 40; i++) {
            Mesa mesa = new Mesa();
            
            dao.startOperation();
            dao.save(mesa);
            dao.stopOperation(true);

        }

    }
}
